
//  ZCLibInterface.h
//  ExpertLib
//
//  Created by lizhihui on 2017/4/17.
//  Copyright © 2017年 zhichi. All rights reserved.
//

#import <Foundation/Foundation.h>

#import <CoreText/CoreText.h>

#define  kNetworkLoginCode 1

/**
 * 接口
 */
////////////////////////////////////////////////////////////////
//
#define API_HOST @"http://api.qzone.cc"
//#define API_HOST @"http://61.147.113.78"
//#define API_HOST @"http://219.142.225.82:8123"
//#define API_HOST @"http://192.168.8.102:8080"

// 初始化信息
#define API_AppInit [NSString stringWithFormat:@"%@/aos2/index/init",API_HOST]


/**
 *  发送验证码
 */
#define API_SendSms [NSString stringWithFormat:@"%@/aos2/sso/sendregsmscode",API_HOST]

#define API_SendSmsPwd [NSString stringWithFormat:@"%@/aos2/sso/sendresetsmscode",API_HOST]

#define API_Login [NSString stringWithFormat:@"%@/aos2/sso/login",API_HOST]
#define API_LoginQQ [NSString stringWithFormat:@"%@/aos2/sso/qqlogin",API_HOST]

//注册
#define API_Register [NSString stringWithFormat:@"%@/aos2/sso/register",API_HOST]

// 手机号重置密码
#define API_FindPwd [NSString stringWithFormat:@"%@/aos2/sso/resetpassword",API_HOST]

// 用户信息
#define API_UserInfo [NSString stringWithFormat:@"%@/aos2/user/userinfo",API_HOST]

// 添加关注
#define API_Addfollow [NSString stringWithFormat:@"%@/aos2/my/addfollow",API_HOST]

// 取消关注
#define API_Delfollow [NSString stringWithFormat:@"%@/aos2/my/delfollow",API_HOST]

// 喜欢
#define API_Userlikemember [NSString stringWithFormat:@"%@/aos2/user/userlikemember",API_HOST]

// 不喜欢
#define API_Usercanceluserlike [NSString stringWithFormat:@"%@/aos2/user/canceluserlike",API_HOST]


// 选项列表
#define API_privacyinfo [NSString stringWithFormat:@"%@/aos2/my/privacyinfo",API_HOST]

// 设置隐私
#define API_setprivacy [NSString stringWithFormat:@"%@/aos2/my/setprivacy",API_HOST]


// 删除帖子
#define API_deleteinfo [NSString stringWithFormat:@"%@/aos2/forum/deleteinfo",API_HOST]

// 删除素材
#define API_deleteinfoTopic(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/deleteinfo",API_HOST,nav_type]







// 黑名单
#define API_BlackList [NSString stringWithFormat:@"%@/aos2/my/blacklist",API_HOST]

// 添加黑名单用户
#define API_Addblack [NSString stringWithFormat:@"%@/aos2/my/addblack",API_HOST]

// 删除黑名单
#define API_Delblack [NSString stringWithFormat:@"%@/aos2/my/delblack",API_HOST]

//消息子项通知列表
#define API_Notice [NSString stringWithFormat:@"%@/aos2/notice/list",API_HOST]

// 粉丝列表
#define API_Myfanslist [NSString stringWithFormat:@"%@/aos2/my/fanslist",API_HOST]

// 关注列表
#define API_Myfollowlist [NSString stringWithFormat:@"%@/aos2/my/followlist",API_HOST]

// 访客列表
#define API_MyVisitlist [NSString stringWithFormat:@"%@/aos2/my/visitlist",API_HOST]

// 留言列表
#define API_Mywalllist [NSString stringWithFormat:@"%@/aos2/user/walllist",API_HOST]

// 删除留言
#define API_delWall [NSString stringWithFormat:@"%@/aos2/my/delwall",API_HOST]

// 发布留言
#define API_AddWall [NSString stringWithFormat:@"%@/aos2/my/addwall",API_HOST]

// 置顶留言
#define API_updatewalltop [NSString stringWithFormat:@"%@/aos2/user/updatewalltop",API_HOST]


// 秘密列表
#define API_Mymimilist [NSString stringWithFormat:@"%@/aos2/my/mimilist",API_HOST]

// 获取会员类型
#define API_Getvipdetail [NSString stringWithFormat:@"%@/aos2/shop/vipdetail",API_HOST]

// 获取个人VIP信息
#define API_GetMyvipdetail [NSString stringWithFormat:@"%@/aos2/vip/detail",API_HOST]

// 开通会员
#define API_OpenMyVip [NSString stringWithFormat:@"%@/aos2/vip/open",API_HOST]

// 微信下单接口
#define API_CreateOrderWx [NSString stringWithFormat:@"%@/aos2/wxpay/createorder",API_HOST]

// 查询订单支付状态
#define API_GetOrderiscomplete [NSString stringWithFormat:@"%@/aos2/wxpay/orderiscomplete",API_HOST]



//收藏分类列表数量
#define API_GetFavnavlist [NSString stringWithFormat:@"%@/aos2/my/favnavlist",API_HOST]

// 获取收藏内容列表
#define API_GetMyFavList [NSString stringWithFormat:@"%@/aos2/my/favlist",API_HOST]


// 上传背景
#define API_UploadWallpaper [NSString stringWithFormat:@"%@/aos2/my/uploadwallpaper",API_HOST]

// 保存背景
#define API_Setwallpaper [NSString stringWithFormat:@"%@/aos2/my/setwallpaper",API_HOST]

// 保存头像
#define API_Setavatar [NSString stringWithFormat:@"%@/aos2/my/setavatar",API_HOST]

// 修改个人信息
#define API_Setuserinfo [NSString stringWithFormat:@"%@/aos2/my/setuserinfo",API_HOST]


// 意见反馈列表
#define API_feedback_List [NSString stringWithFormat:@"%@/aos2/feedback/list",API_HOST]

// 发布意见反馈
#define API_feedback_publish [NSString stringWithFormat:@"%@/aos2/feedback/publish",API_HOST]

// 意见反馈分页数据
#define API_feedback_replylist [NSString stringWithFormat:@"%@/aos2/feedback/replylist",API_HOST]




/**
 检验验证码

 @return
 */
#define API_CheckSmsCode [NSString stringWithFormat:@"%@/aos2/sso/checkregsmscode",API_HOST]



#define API_GetUserHomeList [NSString stringWithFormat:@"%@/aos2/user/homelist",API_HOST]
#define API_Bannerlist [NSString stringWithFormat:@"%@/aos2/index/bannerlist",API_HOST]


#define API_ReportSend [NSString stringWithFormat:@"%@/aos2/report/send",API_HOST]






// 获取数据列表
#define API_GetHomeList(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/list",API_HOST,nav_type]
// 首页关注列表
#define API_GetHomeFollowcontentlist [NSString stringWithFormat:@"%@/aos2/index/followcontentlist",API_HOST]

// 推荐列表
#define API_GetHomeRecommentlist [NSString stringWithFormat:@"%@/aos2/index/recommentlist",API_HOST]




// 专题列表
#define API_GetSpecialList [NSString stringWithFormat:@"%@/aos2/special/list",API_HOST]
// 专题详情
#define API_GetSpeciaDetail [NSString stringWithFormat:@"%@/aos2/special/detail",API_HOST]

// 专题加鸡腿、扣工资
#define API_GetSpecialAddvote [NSString stringWithFormat:@"%@/aos2/special/addvote",API_HOST]


// 排行榜
#define API_GetTopList [NSString stringWithFormat:@"%@/aos2/top/list",API_HOST]
// 土豪人气
#define API_GetTopListDaren [NSString stringWithFormat:@"%@/aos2/top/wealth",API_HOST]


// 搜索
#define API_SearchList [NSString stringWithFormat:@"%@/aos2/search/list",API_HOST]





#define API_GetNavList [NSString stringWithFormat:@"%@/aos2/tree/navlist",API_HOST]
#define API_GetCatList [NSString stringWithFormat:@"%@/aos2/tree/catlist",API_HOST]
#define API_GetTagList [NSString stringWithFormat:@"%@/aos2/tree/taglist",API_HOST]

// 获取素材详情
#define API_GetConetntDetail(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/detail",API_HOST,nav_type]

// 获取素材评论列表
#define API_GetConetntCommentList(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/replylist",API_HOST,nav_type]

// 上传图片
#define API_UploadImage(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/upload",API_HOST,nav_type]

// 发布素材
#define API_publishImage(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/publish",API_HOST,nav_type]

// 发布帖子
#define API_publishPost [NSString stringWithFormat:@"%@/aos2/forum/threadpost",API_HOST]

// 帖子回复中的回复
#define API_publishReplyPost [NSString stringWithFormat:@"%@/aos2/forum/replypost",API_HOST]

// 素材取消收藏不喜欢
#define API_cancelvote(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/cancelvote",API_HOST,nav_type]

// 素材喜欢、收藏
#define API_AddVote(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/addvote",API_HOST,nav_type]

// 发布评论
#define API_publishComment(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/addthread",API_HOST,nav_type]
// 发布评论上传图片
#define API_publishCommentuploadthread(nav_type) [NSString stringWithFormat:@"%@/aos2/%@/uploadthread",API_HOST,nav_type]


//
// 消息相关
//

// 获取消息首页
#define API_GetMessageTopList [NSString stringWithFormat:@"%@/aos2/notice/index",API_HOST]

// 获取消息列表
#define API_GetMessageListWithType [NSString stringWithFormat:@"%@/aos2/notice/list",API_HOST]

// 获取会话列表
#define API_GetSessionlist [NSString stringWithFormat:@"%@/aos2/message/sessionlist",API_HOST]

// 获取会话详情
#define API_GetSessiondetail [NSString stringWithFormat:@"%@/aos2/message/sessiondetail",API_HOST]

// 删除会话
#define API_DelSession [NSString stringWithFormat:@"%@/aos2/message/deletesession",API_HOST]

// 删除会话消息
#define API_DelSessionMessage [NSString stringWithFormat:@"%@/aos2/message/delete",API_HOST]

// 发送私信
#define API_SendMessage [NSString stringWithFormat:@"%@/aos2/message/send",API_HOST]





//
// 帖子相关
//

// 获取帖子分类列表
#define API_GetForumCatList [NSString stringWithFormat:@"%@/aos2/forum/catlist",API_HOST]

// 帖子列表
#define API_GetForumList [NSString stringWithFormat:@"%@/aos2/forum/threadlist",API_HOST]

// 帖子详情
#define API_GetForumDetail [NSString stringWithFormat:@"%@/aos2/forum/threaddetail",API_HOST]

// 用户帖子列表
#define API_GetForumthreadlist [NSString stringWithFormat:@"%@/aos2/user/forumthreadlist",API_HOST]

// 回复评论列表
#define API_GetForumreplylist [NSString stringWithFormat:@"%@/aos2/forum/replylist",API_HOST]

//点赞帖子
#define API_AddVoteForum [NSString stringWithFormat:@"%@/aos2/forum/addvote",API_HOST]

//取消点赞帖子
#define API_CancelVoteForum [NSString stringWithFormat:@"%@/aos2/forum/cancelvote",API_HOST]

// 收藏帖子
#define API_AddFavForum [NSString stringWithFormat:@"%@/aos2/forum/addfav",API_HOST]

// 取消收藏帖子
#define API_CancelFavForum [NSString stringWithFormat:@"%@/aos2/forum/cancelfav",API_HOST]

// 评论帖子
#define API_ReplyForum [NSString stringWithFormat:@"%@/aos2/forum/replypost",API_HOST]

// 帖子评论上传图片
#define API_ForumUpload [NSString stringWithFormat:@"%@/aos2/forum/upload",API_HOST]





